<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="model.User" %>
<jsp:useBean id="dob" class="Utils.DBUtils"/>
<%
  Object user = request.getSession().getAttribute("user");
  if (user!=null) {
    User user1 = (User)user;
%>
<html>
<head>
  <title>修改</title>
</head>

<body>
<%
  String id = request.getParameter("id");
  String[] temp = {"id","name","password"};
  List<String[]> vec = dob.getUserData("user",temp,"id="+id,user1);
  for(int i=0;i<vec.size();i++){
    String[] ss = vec.get(i);
%>
<form name="form1" method="post" action="editUser.do" onSubmit="return isok();">
  <table width="459" border="0" cellpadding="0" cellspacing="1" bgcolor="#999999">
    <tr>
      <td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
    <tr>
      <td width="99" bgcolor="#FFFFFF">Name:</td>
      <td width="357" bgcolor="#FFFFFF">
        <input type="hidden" name="id" value="<%=id%>">
        <input name="name" type="text" value="<%=ss[1] %>" ></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF">password</td>
      <td bgcolor="#FFFFFF"><input name="password" type="text" value="<%=ss[2] %>"></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF">&nbsp;</td>
      <td bgcolor="#FFFFFF"><input type="submit" name="Submit" value="修改">
      </td>
    </tr>
  </table>
</form>


</body>

<%}} %>
</html>
